package com.zerdoor.service;

import com.zerdoor.util.Email;

import java.util.Map;

/**
 * 忘记密码
 * Created by zjy on 2015/5/7.
 */
public interface IForgetPassWordService {


    /**
     * 根据信息验证，通过则重置密码，并把新密码发送邮件至用户邮箱
     * @param name 账号
     * @param email 邮箱
     * @param phone 手机号
     * @return
     * @throws Exception
     */
    Map<String,String> updatePwdByUserInfo(String name, String email, String phone,Email simpleMail,String fromMail) throws Exception;
}
